<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="crm.control.EmployeesControl" %>
<%@ page import="crm.model.Employees" %>
<%@page import="java.util.Date"%>
<%@page import="java.text.SimpleDateFormat"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>天成科技CRM管理系统</title>
<!--                       CSS                       -->
<!-- Reset Stylesheet -->
<link rel="stylesheet" href="../../../resources/css/reset.css" type="text/css" media="screen" />
<!-- Main Stylesheet -->
<link rel="stylesheet" href="../../../resources/css/style.css" type="text/css" media="screen" />
<!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
<link rel="stylesheet" href="../../../resources/css/invalid.css" type="text/css" media="screen" />
<!--                       Javascripts                       -->
<!-- jQuery -->
<script type="text/javascript" src="../../../resources/js/jquery-1.2.6.js"></script>
<!-- jQuery Configuration -->
<script type="text/javascript" src="../../../resources/scripts/simpla.jquery.configuration.js"></script>
 <script type="text/javascript" src="../../../resources/js/WebCalendar.js"></script>
<!-- Facebox jQuery Plugin -->
<script type="text/javascript" src="../../../resources/scripts/facebox.js"></script>
<!-- jQuery WYSIWYG Plugin -->
<script type="text/javascript" src="../../../resources/scripts/jquery.wysiwyg.js"></script>
<!-- jQuery Datepicker Plugin -->
<script type="text/javascript" src="../../../resources/scripts/jquery.datePicker.js"></script>
<script type="text/javascript" src="../../../resources/scripts/jquery.date.js"></script>
<script type="text/javascript" src="../../../resources/js/reinitIframe.js"></script>
<script type='text/javascript'>
window.onload=function(){
	//var num=document.getElementById('num').value;
	setInterval(function(){
		new ReinitIframe('iadd');
		new ReinitIframe('iinformation');
		for(var i=1;i<=num;i++){
			var check = 'icheck' + i;
			var description = 'idescription' + i;
			new ReinitIframe(check);
			new ReinitIframe(description);
		}
	},200);
	new SortTr('tbcontent','predicttime','predictbtn');
	new SrotStage('tbcontent','money','money');
	new SrotStage('tbcontent','stage','stage');
}


</script>	
<script type='text/javascript'>

$(function(){
		$('#add').css('cursor','pointer')
		.click(function(){
			var tem = $('.model').eq(0).clone();
			$('tbody').append(tem);
			$("tr:even").addClass('odd');
		});
		$('#del').css('cursor','pointer')
		.click(function(){
			alert('')
			alert($('.tb tr').last())
			$('.tb tr').last().remove();
		});
		setInterval(function(){
		new ReinitIframe('iinformation');
		},200);
});
</script>
<style type="text/css">
body,div,p,table,tr,td,input,textarea{ margin:0; padding:0; font-weight:bold; font-family:"宋体"; font-size:14px; color:#000;}
#tab123 td{ padding:10px 0; text-align:center;}
#tab123 input{ font-size:12px; background-color:transparent; color:#333; width:170px; padding-left:10px; border:0 none; font-weight:normal;}
#tab123 input.lb{ width:16px; margin:0; padding:0; vertical-align:bottom;}
#tab123 #tab321 td{border:1px solid #000;}
#tab123 #lb td{ padding:5px 0 5px 20px; border:none; text-align:left;}

</style>
</head>
<body>
<%
  	  request.setCharacterEncoding("utf-8");
      Employees cu = (Employees)session.getAttribute("user");
      Date dt = new Date(); 
      SimpleDateFormat matter1 = new SimpleDateFormat("yyyy-MM-dd");
      String date = matter1.format(dt);
   %>

<div id="body-wrapper">
  <!-- Wrapper for the radial gradient background -->
  <div id="sidebar">
    <div id="sidebar-wrapper">
      <!-- Sidebar with logo and menu -->
      <h1 id="sidebar-title"><a href="#">天成科技CRM管理系统</a></h1>
      <!-- Logo (221px wide) -->
      <a href="#"><img id="logo" src="../../../resources/css/slice/notice.png" alt="Simpla Admin logo" /></a>
      <!-- Sidebar Profile links -->
      <div id="profile-links"> <a href="#"><%=EmployeesControl.getEmployeesName(cu.getId())%>,您好！</a> <br />
        <br />
        <a href="#information" rel='modal' >修改个人信息</a> | <a href="../../login/logout.jsp" title="Sign Out">注销</a> </div>
      <ul id="main-nav">
        <!-- Accordion Menu -->
        <li> <a href="#" class="nav-top-item current">公司页面 </a>
          <ul>
	          <li><a href='../company/material/material_download.jsp'>资料 </a></li>
	          <li><a href='../company/notice/notice.jsp'>公告</a></li>
	          <li><a href='../company/salearea/salearea.jsp'>销售区域</a></li>
	          <li><a href='../company/saletarget/saletarget.jsp'>销售目标</a></li>
	          <li><a href='../company/show_all_custom_require.jsp' class='current'>客户需求登记表</a></li>
          </ul>
         </li>
        <li> <a href="../recepit/show_all_recepits.jsp" class="nav-top-item no-submenu">
          <!-- Add the class "current" to current menu item -->
           我的跟单</a>
        
        </li>
        <li> <a href="../offer/show_all_offers.jsp" class="nav-top-item no-submenu">报<span class='letter'>价</span></a>      
        </li>
        <li> <a href="../bargain/show_all_bargains.jsp" class="nav-top-item no-submenu">合<span class='letter'>同</span></a>
        </li>
        <li> <a href="#" class="nav-top-item ">日<span class='letter'>程</span></a>
        	<ul>
	        	<li><a href='../schedule/schedule.jsp'>日程管理</a></li>
	        	<li><a  href='../schedule/all_sum.jsp'>周总结</a></li>
	        	<li><a  href='../schedule/all_plan.jsp'>周计划</a></li>
        	</ul>
        </li>
        <li> <a href="../customer/customer.jsp" class="nav-top-item no-submenu">我的客户</a>
        <%
            if(cu.getPosition()!=1){
            	%>
            	<li> <a href="#" class="nav-top-item">统<span class='letter'>计</span></a>
		          <ul>
		            <li><a href="../../control/statistics/company_statistics.jsp">公司统计</a></li>
		            <li><a href="../../control/statistics/employees_statistics.jsp">员工统计</a></li>
		          </ul>
		        </li>
            	<li><a href="../employees/employees.jsp" class="nav-top-item no-submenu">员工管理</a></li>
            	<%
            }
        %>
        </li>
      </ul>
    </div>
  </div>
 <table id="tab123" style="margin:0 auto;" width="600" border="0" align="center" cellpadding="0" cellspacing="0">
<form action="custom_require_add_do.jsp" method="post">
<tr><td style="padding:0">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">

  <tr>
    <td colspan="4" align="center" valign="middle" height="80" style="font-size:20px;">客户需求登记单</td>
  </tr>
  <tr>
    <td align="right" valign="middle" width="120">系统名称：</td>
    <td align="center" valign="middle" width="180"><input type="text" name="system_name"/></td>
    <td align="right" valign="middle" width="120">需求书编号：</td>
    <td align="center" valign="middle" width="180"><input type="text" name="require_book_id"/></td>
  </tr>
</table></td></tr>
<tr><td style="padding:0">
<table id="tab321" style=" border-collapse:collapse;" width="598" border="1" bordercolor="#000000"  align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center" valign="middle" width="120">功能模块名称
</td>
    <td align="center" valign="middle" width="180"><input type="text" name="model_name"/></td>
    <td align="center" valign="middle" width="120">功能组</td>
    <td align="center" valign="middle" width="180"><input type="text" name="function"/></td>
  </tr>
  <tr>
    <td align="center" valign="middle">类别</td>
    <td colspan="3" align="left" valign="middle" width="480">
    <table width="480" id="lb" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><input type="checkbox" name="lb" class="lb" value="字典修改" />字典修改</td>
        <td><input type="checkbox" name="lb" class="lb" value="关联查询修改" />关联查询修改</td>
      </tr>
      <tr>
        <td><input type="checkbox" name="lb" class="lb" value="审批或工作流程修改"/>审批或工作流程修改</td>
        <td><input type="checkbox" name="lb" class="lb" value="增加文书"/>增加文书</td>
      </tr>
      <tr>
        <td><input type="checkbox" name="lb" class="lb" value="数据录入页面增加录入字段"/>数据录入页面增加录入字段</td>
        <td><input type="checkbox" name="lb" class="lb" value="页面显示字段名称修改"/>页面显示字段名称修改</td>
      </tr>
      <tr>
        <td><input type="checkbox" name="lb" class="lb" value="平台操作方式修改"/>平台操作方式修改</td>
        <td><input type="checkbox" name="lb" class="lb" value="系统提示功能"/>系统提示功能</td>
      </tr>
      <tr>
        <td><input type="checkbox" name="lb" class="lb" value="新增窗体善"/>新增窗体善</td>
        <td><input type="checkbox" name="lb" class="lb" value="原有功能完"/>原有功能完</td>
      </tr>
      <tr>
        <td><input type="checkbox" name="lb" class="lb" value="原有功能删除"/>原有功能删除</td>
        <td></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td align="center" valign="middle">涉及角色或岗位
</td>
    <td colspan="3" align="center" valign="middle"><input style="width:470px;" type="text" name="link_play"/></td>
  </tr>
  <tr>
    <td align="center" valign="middle">需求提供单位</td>
    <td align="center" valign="middle"><input type="text" name="offer_depart"/></td>
    <td align="center" valign="middle">需求提供人</td>
    <td align="center" valign="middle"><input type="text" name="offer_person"/></td>
  </tr>
  <tr>
    <td align="center" valign="middle">服务单位</td>
    <td align="center" valign="middle"><input type="text" name="deserve_depart"/></td>
    <td align="center" valign="middle">服务人员</td>
    <td align="center" valign="middle"><input type="text" name="deserve_person" value="<%=EmployeesControl.getEmpolyeesById(cu.getId()).getName() %>" readonly/></td>
  </tr>
  <tr>
    <td colspan="4" align="center" valign="middle">需求描述</td>
  </tr>
  <tr>
    <td colspan="4" align="center" valign="middle"><textarea style="width:580px; height:200px; color:#333; border:0 none; background-color:transparent; font-weight:normal;" name="description"></textarea>
    <!--<p style=" text-align:right; padding:10px 28px 0 0;">日期：<input  style="width:50px;" type="text"/>年<input style="width:50px;" type="text"/>月<input style="width:50px;" type="text"/>日</p>-->
        <p style=" text-align:right; padding:10px 28px 0 0;">日期：<input  style="width:70px;" type="text" value="<%=date %>" readonly/></p>
   
    </td>
  </tr>
  <tr><td colspan="4" style="border: 0 none;"><input class='button' type='submit' value='提交'/></td></tr>
</table></td></tr>
</form>
</table>
</body>
</html>